﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpZeroTemplate.Dfs
{
    /// <summary>文件存储系统
    /// </summary>
    public interface IDfsStorage
    {
        /// <summary>保存到临时目录下
        /// </summary>
        Task<TemporaryFile> SaveTemporaryFile(byte[] data, string name, string extension);

        /// <summary>将临时文件保存到真实文件目录
        /// </summary>
        Task<StorageFile> SaveStorageFile(string temporaryFileName);

        /// <summary>从保存路径获取文件
        /// </summary>
        StorageFile GetStorageFileFromSavePath(string savePath);

    }
}
